package com.dt.dubai.mber.entity;

import com.dt.dubai.core.comm.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.*;

import javax.persistence.Table;
import javax.validation.constraints.*;

import java.util.Date;

/*
 * 顾客信息表
 */

@Data
@Table(name = "dt_mber_customer_info")
@EqualsAndHashCode(callSuper = false)
public class MberCustomerInfoEntity extends BaseEntity {

    //顾客登录记录ID
    @NotNull(message = "customerLoginRecordId参数不能为空")
    Long customerLoginRecordId;

    //真实姓名
    @Length(min = 0, max = 20, message = "realName参数最大长度不20")
    String realName;

    //证件类型 1-身份证,2-军官证,3-护照,4-未知
    @NotNull(message = "identityCardType参数不能为空")
    Short identityCardType;

    //证件号码
    @Length(min = 0, max = 36, message = "identityCardNo参数最大长度不36")
    String identityCardNo;

    //手机号
    Integer mobile;

    //邮箱
    @Length(min = 0, max = 42, message = "email参数最大长度不42")
    String email;

    //性别 1-男,2-女,3-其它
    @NotNull(message = "sex参数不能为空")
    Integer sex;

    //积分
    @NotNull(message = "point参数不能为空")
    Integer point;

    //会员生日
    Date birthday;

    //会员级别 1-普通会员,2-vip
    @NotNull(message = "level参数不能为空")
    Integer level;

    //用户账户id
    @NotNull(message = "accountRecordId参数不能为空")
    Long accountRecordId;


}
